GXPostScriptQueryPrinter
QuickDraw GX sends theGXPostScriptQueryPrinter
message to gather configuration information before imaging begins. You can override theGXPostScriptQueryPrinter
message to gather information about the current state of the printer and to synchronize communications with it. Your override of theGXPostScriptQueryPrinter
message must match the following formal declaration:
OSErr MyPostScriptQueryPrinter (long *queryResult);
queryResult
- On return, specifies the state of the printer, as shown in Table 4-8.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
Ater the device connection is opened, QuickDraw GX sends theGXPostScriptQueryPrinter
message. This message allows QuickDraw GX to gather information from a printer using two-way synchronous communications. The information gathered from the printer is stored in the desktop printer (DTP) configuration file, which all message handlers can access. The state of the printer is returned in thequeryResult
parameter. The values that are returned are shown in Table 4-8.The default implementation of this message verifies whether a communications channel is open to a printer or if the output of the system is being redirected to a file. If the print job is being sent to a printer, the default implementation of
GXPostScriptQueryPrinter
updates the printer configuration information by querying the printer to determine how much memory and which fonts are available on it. The outcome of this message is that the state of the PostScript imaging system is set up to print the job.You can override the
GXPostScriptQueryPrinter
message to obtain information about the device you need to process the current document. You need to override this message if you want to test the state of an add-on hardware device such as a bin feeder.SPECIAL CONSIDERATIONS
If you override theGXPostScriptQueryPrinter
message, you must always forward it to enable the default implementation to return information about the type of connection.RESULT CODES
The default implementation of the
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. GXPostScriptQueryPrinter
message can also return the communications errors that are listed in Table 4-2 on page 4-42.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help